﻿//Write a program that allocates array of 20 integers and initializes each element by its index multiplied by 5. Print the obtained array on the console.



using System;

namespace ArrayOf20Elements
{
    class ArrayOf20Elements
    {
        static void Main()
        {
            int[] newArray = new int[20];               //Intiliaze the array

            Console.Write("\n\r[");
            for (int i = 0; i < newArray.Length; i++)
            {
                newArray[i] = i * 5;                    //Filling the array
                Console.Write(" {0} ", newArray[i]);    //Printing the result
            }
            Console.WriteLine("]");
        }
    }
}
